<template>
	<view>
		<view class="common-head">
			<view class="head-x"></view>
			<view class="common-item">
				<view class="item-left">
					<text class="iconfont icon-zuojiantou" @tap="handleBack"></text> | <text class="iconfont icon-shouye" @tap="handleHome"></text>
				</view>
				{{ title }}
			</view>
		</view>
	</view>
</template>

<script>
	import "common/iconfont.css"
	export default {
		name:"commonHead",
		props: ['title'],
		data() {
			return {
				
			};
		},
		methods:{
			handleBack(){
				uni.navigateBack()
			},
			handleHome(){
				uni.navigateTo({
					url: "../../pages/index/index"
				})
			}
		}
	}
</script>

<style lang="scss">
	@import "commonhead.scss"
	// @import "@/components/commonHead/commonhead.scss"

</style>
